package com.demo.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class ContactController {

	final Logger logger = LoggerFactory.getLogger(ContactController.class);
	
	@RequestMapping( value="/contacts", method = RequestMethod.GET)
	public String list(Model model)
	{
		logger.info("list contacts");
		model.addAttribute("contats","samuel");
		return "contacts/list";
	}
}
